//
//  SKBoardConstants.h
//  Sudoku
//
//  Created by Richard Hodgkins on 09/09/2012.
//  Copyright (c) 2012 Richard Hodgkins. All rights reserved.
//

#define BOX_ROWS 3
#define BOX_COLS 3
#define CELL_ROWS 3
#define CELL_COLS 3

#define BOX_RECP_ROWS (1.0 / BOX_ROWS)
#define BOX_RECP_COLS (1.0 / BOX_COLS)

#define CELL_RECP_ROWS (1.0 / CELL_ROWS)
#define CELL_RECP_COLS (1.0 / CELL_COLS)

#define CELLS_PER_ROW (BOX_ROWS * CELL_ROWS)
#define CELLS_PER_COL (BOX_COLS * CELL_COLS)

#define CELL_PER_ROW_RECP (1.0 / CELLS_PER_ROW)
#define CELL_PER_COL_RECP (1.0 / CELLS_PER_COL)

#define CELLS_PER_BOX (CELL_ROWS * CELL_COLS)

#define TOTAL_BOXES (BOX_ROWS * BOX_COLS)
#define TOTAL_CELLS (CELLS_PER_BOX * TOTAL_BOXES)